package CreationalPattern.Prototype.ShallowClone;

import lombok.Data;

@Data
public class WeeklyLog implements Cloneable {
    private Attachment attachment;
    private String name;
    private String date;
    private String content;

    public WeeklyLog clone() {
        Object o = null;
        try {
            o = super.clone();
            return (WeeklyLog) o;
        } catch (CloneNotSupportedException e) {
            System.out.println("Copy not supported");
            return null;
        }
    }
}
